package com.example.server;

import com.example.entity.Student;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018-2-6.
 */
@Repository
public interface StudentRepository extends JpaRepository<Student,Integer> {
    /**
     * 扩展,按年龄查询
     * @param age
     * @return
     */
    public List<Student> findByAge(Integer age);
}
